package com.example.travel.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.servlet.ModelAndView;

@Controller

public class WebSocketController {

    @Autowired
    private TravelWebSocket travelWebSocket;
//
//    @GetMapping("/ws")
//    public String socket(){
//        return "test";
//    }

    @GetMapping("/webSocket")
    public ModelAndView socket() {
        ModelAndView mav=new ModelAndView("/test");
//        mav.addObject("userId", userId);
        return mav;
    }
}
